<?php
/**
 * ExtTreeNode class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtTreeNode extends ExtTreeNodeBase
{
    /**
     * Gets the value of ExtJS allowChildren property
     * @return Boolean 
     */
    public function getAllowChildren()
    {
    	return $this->getConfig("allowchildren");
    }

    /**
     * Sets the value of ExtJS allowChildren property
     * @param Boolean $value 
     */
    public function setAllowChildren($value)
    {
    	$this->setConfig("allowchildren",$value);
    }

    /**
     * Gets the value of ExtJS allowDrag property
     * @return Boolean 
     */
    public function getAllowDrag()
    {
    	return $this->getConfig("allowdrag");
    }

    /**
     * Sets the value of ExtJS allowDrag property
     * @param Boolean $value 
     */
    public function setAllowDrag($value)
    {
    	$this->setConfig("allowdrag",$value);
    }

    /**
     * Gets the value of ExtJS allowDrop property
     * @return Boolean 
     */
    public function getAllowDrop()
    {
    	return $this->getConfig("allowdrop");
    }

    /**
     * Sets the value of ExtJS allowDrop property
     * @param Boolean $value 
     */
    public function setAllowDrop($value)
    {
    	$this->setConfig("allowdrop",$value);
    }

    /**
     * Gets the value of ExtJS checked property
     * @return Boolean 
     */
    public function getChecked()
    {
    	return $this->getConfig("checked");
    }

    /**
     * Sets the value of ExtJS checked property
     * @param Boolean $value 
     */
    public function setChecked($value)
    {
    	$this->setConfig("checked",$value);
    }

    /**
     * Gets the value of ExtJS cls property
     * @return String 
     */
    public function getCls()
    {
    	return $this->getConfig("cls");
    }

    /**
     * Sets the value of ExtJS cls property
     * @param String $value 
     */
    public function setCls($value)
    {
    	$this->setConfig("cls",$value);
    }

    /**
     * Gets the value of ExtJS disabled property
     * @return Boolean 
     */
    public function getDisabled()
    {
    	return $this->getConfig("disabled");
    }

    /**
     * Sets the value of ExtJS disabled property
     * @param Boolean $value 
     */
    public function setDisabled($value)
    {
    	$this->setConfig("disabled",$value);
    }

    /**
     * Gets the value of ExtJS draggable property
     * @return Boolean 
     */
    public function getDraggable()
    {
    	return $this->getConfig("draggable");
    }

    /**
     * Sets the value of ExtJS draggable property
     * @param Boolean $value 
     */
    public function setDraggable($value)
    {
    	$this->setConfig("draggable",$value);
    }

    /**
     * Gets the value of ExtJS editable property
     * @return Boolean 
     */
    public function getEditable()
    {
    	return $this->getConfig("editable");
    }

    /**
     * Sets the value of ExtJS editable property
     * @param Boolean $value 
     */
    public function setEditable($value)
    {
    	$this->setConfig("editable",$value);
    }

    /**
     * Gets the value of ExtJS expandable property
     * @return Boolean 
     */
    public function getExpandable()
    {
    	return $this->getConfig("expandable");
    }

    /**
     * Sets the value of ExtJS expandable property
     * @param Boolean $value 
     */
    public function setExpandable($value)
    {
    	$this->setConfig("expandable",$value);
    }

    /**
     * Gets the value of ExtJS expanded property
     * @return Boolean 
     */
    public function getExpanded()
    {
    	return $this->getConfig("expanded");
    }

    /**
     * Sets the value of ExtJS expanded property
     * @param Boolean $value 
     */
    public function setExpanded($value)
    {
    	$this->setConfig("expanded",$value);
    }

    /**
     * Gets the value of ExtJS hidden property
     * @return Boolean 
     */
    public function getHidden()
    {
    	return $this->getConfig("hidden");
    }

    /**
     * Sets the value of ExtJS hidden property
     * @param Boolean $value 
     */
    public function setHidden($value)
    {
    	$this->setConfig("hidden",$value);
    }

    /**
     * Gets the value of ExtJS href property
     * @return String 
     */
    public function getHref()
    {
    	return $this->getConfig("href");
    }

    /**
     * Sets the value of ExtJS href property
     * @param String $value 
     */
    public function setHref($value)
    {
    	$this->setConfig("href",$value);
    }

    /**
     * Gets the value of ExtJS hrefTarget property
     * @return String 
     */
    public function getHrefTarget()
    {
    	return $this->getConfig("hreftarget");
    }

    /**
     * Sets the value of ExtJS hrefTarget property
     * @param String $value 
     */
    public function setHrefTarget($value)
    {
    	$this->setConfig("hreftarget",$value);
    }

    /**
     * Gets the value of ExtJS icon property
     * @return String 
     */
    public function getIcon()
    {
    	return $this->getConfig("icon");
    }

    /**
     * Sets the value of ExtJS icon property
     * @param String $value 
     */
    public function setIcon($value)
    {
    	$this->setConfig("icon",$value);
    }

    /**
     * Gets the value of ExtJS iconCls property
     * @return String 
     */
    public function getIconCls()
    {
    	return $this->getConfig("iconcls");
    }

    /**
     * Sets the value of ExtJS iconCls property
     * @param String $value 
     */
    public function setIconCls($value)
    {
    	$this->setConfig("iconcls",$value);
    }

    /**
     * Gets the value of ExtJS isTarget property
     * @return Boolean 
     */
    public function getIsTarget()
    {
    	return $this->getConfig("istarget");
    }

    /**
     * Sets the value of ExtJS isTarget property
     * @param Boolean $value 
     */
    public function setIsTarget($value)
    {
    	$this->setConfig("istarget",$value);
    }

    /**
     * Gets the value of ExtJS qtip property
     * @return String 
     */
    public function getQtip()
    {
    	return $this->getConfig("qtip");
    }

    /**
     * Sets the value of ExtJS qtip property
     * @param String $value 
     */
    public function setQtip($value)
    {
    	$this->setConfig("qtip",$value);
    }

    /**
     * Gets the value of ExtJS singleClickExpand property
     * @return Boolean 
     */
    public function getSingleClickExpand()
    {
    	return $this->getConfig("singleclickexpand");
    }

    /**
     * Sets the value of ExtJS singleClickExpand property
     * @param Boolean $value 
     */
    public function setSingleClickExpand($value)
    {
    	$this->setConfig("singleclickexpand",$value);
    }

    /**
     * Gets the value of ExtJS text property
     * @return String 
     */
    public function getText()
    {
    	return $this->getConfig("text");
    }

    /**
     * Sets the value of ExtJS text property
     * @param String $value 
     */
    public function setText($value)
    {
    	$this->setConfig("text",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'allowchildren' => 'allowChildren',
            'allowdrag' => 'allowDrag',
            'allowdrop' => 'allowDrop',
            'hreftarget' => 'hrefTarget',
            'iconcls' => 'iconCls',
            'istarget' => 'isTarget',
            'singleclickexpand' => 'singleClickExpand'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforechildrenrendered' => array('sender'),
            'beforeclick' => array('sender','e'),
            'beforecollapse' => array('sender','deep','anim'),
            'beforedblclick' => array('sender','e'),
            'beforeexpand' => array('sender','deep','anim'),
            'checkchange' => array('sender','checked'),
            'click' => array('sender','e'),
            'collapse' => array('sender'),
            'contextmenu' => array('sender','e'),
            'dblclick' => array('sender','e'),
            'disabledchange' => array('sender','disabled'),
            'expand' => array('sender'),
            'textchange' => array('sender','text','oldText')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'tooltip' => true
        ));
        $this->setXType(null);
        $this->setXClass('Ext.tree.TreeNode');
    }    
}
?>